package site.xuxingcan;

import java.net.Socket;

/**
 * Created by xuxingcan on 16-6-27.
 */
public class Test {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1", 8191);
            SocketHelper socketHelper = new SocketHelper(socket);
            socketHelper.writeLineAndFlush(ActionUtil.UPDATE_USER);
            socketHelper.writeLineAndFlush("{\"userName\":\"xuxingcan\",\"userIntegral\":123.0,\"isBanker\":true}");
            System.out.println(socketHelper.readLine());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
